<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
 * CodeIgniter
 *
 * An open source application development framework for PHP 5.1.6 or newer
 *
 * @package		CodeIgniter
 * @author		ExpressionEngine Dev Team
 * @copyright	Copyright (c) 2008 - 2011, EllisLab, Inc.
 * @license		http://codeigniter.com/user_guide/license.html
 * @link		http://codeigniter.com
 * @since		Version 1.0
 * @filesource
 */

// ------------------------------------------------------------------------

/**
 * CodeIgniter HTML Helpers
 *
 * @package		CodeIgniter
 * @subpackage	Helpers
 * @category	Helpers
 * @author		ExpressionEngine Dev Team
 * @link		http://codeigniter.com/user_guide/helpers/html_helper.html
 */

// ------------------------------------------------------------------------

/**
 * c
 *
 * 转义单引号，双引号，尖括号
 * 
 * @return	string
 */
function c($str)
{
    $str = strval($str);
    return htmlentities($str, ENT_QUOTES, "UTF-8");
    
}

function js_tag($str)
{
    //$ci = & get_instance();
    return '<script type="text/javascript" src="/'. $str .'"></script>';
}



/* End of file html_helper.php */
/* Location: ./system/helpers/html_helper.php */